using System;
using Camalon.Drawing;
using Camalon.Drawing.Shapes;


namespace Camalon.Drawing.Samples.CSharp
{
	/// <summary>
	/// Summary description for TestTextureFill.
	/// </summary>
	public class TextureFillSample2:Camalon.Drawing.ShapeContainer
    {
		private Camalon.Drawing.SolidFill solidFill2;
		private Camalon.Drawing.ShapePen castlePen;
		private Camalon.Drawing.Shapes.Castle castle;
		private Camalon.Drawing.PathGradientFill castlePGFill;
		private Camalon.Drawing.PathGradientFill pathGradientFill1;
		private Camalon.Drawing.Shapes.MagicShape magicShape;
		private Camalon.Drawing.Shapes.RectangleShape rectangle2;
        private TextureFill textureFill;
        private ShapePen shapePen;
        private RectangleShape rectangle;
        private Camalon.Drawing.Shapes.Pie pie;

		private void InitializeComponent()
		{
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(TextureFillSample2));
            this.castlePGFill = new Camalon.Drawing.PathGradientFill();
            this.solidFill2 = new Camalon.Drawing.SolidFill();
            this.castle = new Camalon.Drawing.Shapes.Castle();
            this.castlePen = new Camalon.Drawing.ShapePen();
            this.magicShape = new Camalon.Drawing.Shapes.MagicShape();
            this.pathGradientFill1 = new Camalon.Drawing.PathGradientFill();
            this.rectangle2 = new Camalon.Drawing.Shapes.RectangleShape();
            this.pie = new Camalon.Drawing.Shapes.Pie();
            this.textureFill = new Camalon.Drawing.TextureFill();
            this.shapePen = new Camalon.Drawing.ShapePen();
            this.rectangle = new Camalon.Drawing.Shapes.RectangleShape();
            ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
            // 
            // castlePGFill
            // 
            this.castlePGFill.FillMode = Camalon.Drawing.PathGradientFillMode.Elliptic;
            this.castlePGFill.InterpolationColors = new Camalon.Drawing.CompoundColor[] {
        new Camalon.Drawing.CompoundColor(System.Drawing.Color.Black),
        new Camalon.Drawing.CompoundColor(System.Drawing.Color.WhiteSmoke, 0.5F),
        new Camalon.Drawing.CompoundColor(System.Drawing.Color.CornflowerBlue, 1F)};
            // 
            // solidFill2
            // 
            this.solidFill2.Color = new Camalon.Drawing.TransparentColor(System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(255)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))));
            // 
            // castle
            // 
            this.castle.BorderSides = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)));
            this.castle.BorderType = Camalon.Drawing.Shapes.BorderType.Line;
            this.castle.Fill = this.castlePGFill;
            this.castle.PeakCount = 3;
            this.castle.PeakHeight = 5;
            this.castle.PeakStyle = Camalon.Drawing.Shapes.CircleType.Gear2;
            this.castle.Pen = this.castlePen;
            this.castle.Position = new System.Drawing.Point(97, 22);
            this.castle.Shear = new Camalon.Drawing.Shear(10, 0);
            this.castle.Size = new System.Drawing.Size(25, 25);
            // 
            // magicShape
            // 
            this.magicShape.Fill = this.pathGradientFill1;
            this.magicShape.InSize = new Camalon.Drawing.SizeScale(0.6F, 0.6216216F);
            this.magicShape.PeakCount = 5;
            this.magicShape.Pen = this.castlePen;
            this.magicShape.Position = new System.Drawing.Point(166, 17);
            this.magicShape.Size = new System.Drawing.Size(40, 40);
            // 
            // pathGradientFill1
            // 
            this.pathGradientFill1.InterpolationColors = new Camalon.Drawing.CompoundColor[] {
        new Camalon.Drawing.CompoundColor(System.Drawing.Color.Black),
        new Camalon.Drawing.CompoundColor(System.Drawing.Color.WhiteSmoke, 0.5F),
        new Camalon.Drawing.CompoundColor(System.Drawing.SystemColors.InactiveCaption, 1F)};
            // 
            // rectangle2
            // 
            this.rectangle2.BottomLeft = new Camalon.Drawing.Corner(0.222223F, 0.2857129F);
            this.rectangle2.BottomRight = new Camalon.Drawing.Corner(0.2222229F, 0.2857147F);
            this.rectangle2.Fill = this.pathGradientFill1;
            this.rectangle2.Pen = this.castlePen;
            this.rectangle2.Position = new System.Drawing.Point(245, 24);
            this.rectangle2.Shear = new Camalon.Drawing.Shear(8, 0);
            this.rectangle2.Size = new System.Drawing.Size(30, 30);
            this.rectangle2.TopLeft = new Camalon.Drawing.Corner(0.2222234F, 0.2857151F);
            this.rectangle2.TopRight = new Camalon.Drawing.Corner(0.2222229F, 0.2857144F);
            // 
            // pie
            // 
            this.pie.Fill = this.pathGradientFill1;
            this.pie.Pen = this.castlePen;
            this.pie.Position = new System.Drawing.Point(27, 19);
            this.pie.Size = new System.Drawing.Size(30, 30);
            this.pie.StartAngle = 37;
            this.pie.SweepAngle = 233;
            // 
            // textureFill
            // 
            this.textureFill.ColorMap = new Camalon.Drawing.TransparentColor[] {
        new Camalon.Drawing.TransparentColor(System.Drawing.Color.White),
        new Camalon.Drawing.TransparentColor(System.Drawing.Color.Lavender)};
            this.textureFill.Image = ((System.Drawing.Image)(resources.GetObject("textureFill.Image")));
            this.textureFill.ImageAlign = Camalon.Drawing.ImageAlign.TopLeft;
            this.textureFill.ImageWrap = System.Drawing.Drawing2D.WrapMode.TileFlipXY;
            // 
            // shapePen
            // 
            this.shapePen.Color = new Camalon.Drawing.TransparentColor(System.Drawing.SystemColors.InactiveCaption);
            this.shapePen.ForegroundPen = false;
            this.shapePen.Width = 2F;
            // 
            // rectangle
            // 
            this.rectangle.Fill = this.textureFill;
            this.rectangle.Pen = this.shapePen;
            this.rectangle.Position = new System.Drawing.Point(30, 80);
            this.rectangle.Size = new System.Drawing.Size(461, 250);
            // 
            // TextureFillSample2
            // 
            this.Position = new System.Drawing.Point(10, 10);
            this.Shapes.AddRange(new Camalon.Drawing.Shape[] {
            this.castle,
            this.magicShape,
            this.rectangle2,
            this.pie,
            this.rectangle});
            this.Size = new System.Drawing.Size(638, 582);
            ((System.ComponentModel.ISupportInitialize)(this)).EndInit();

		}
	
		public TextureFillSample2()
		{
			//
			// TODO: Add constructor logic here
			//
		}
	}
}
